package dempClone;

public class text {
    public static void main(String[] args) throws CloneNotSupportedException{
        Person person=new Person(10);
        Person person1=(Person)person.clone();
        System.out.println(person.money.m);
        System.out.println(person1.money.m);
        System.out.println("=======================");
        person1.money.m=99;
        System.out.println(person.money.m);
        System.out.println(person1.money.m);


    }

}
